home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / INCLUDE / YAKSOUND.H < prev    next >
C/C++ Source or Header  |  1993-01-10  |  991b  |  44 lines

  1. #ifndef YAKSOUND.H
  2.  
  3. #define YAKSOUND.H
  4.  
  5. #include <dos.h>
  6. #include "yaklib.h"
  7.  
  8. class yakSample
  9. {
  10. public:
  11.   byte * sampleData;
  12.   unsigned long sampleLength;
  13.   void play(word sampleRate = 11000, word stereo = 1, word voice = 1, unsigned long length = 0);
  14.   yakSample(void) {sampleData = NULL;};
  15.   yakSample(char * filename) {sampleData = NULL; load(filename);};
  16.   byte * load(char * filename);
  17. };
  18.  
  19. class yakVoc
  20. {
  21. public:
  22.   byte * sampleData;
  23.   void load(char * filename, yakLib * myYakLib = NULL);
  24.   void play(void);
  25. };
  26.  
  27. void CTLoad(void);
  28. int CTGetVersion(void);
  29. void CTSetIOAddr(int base);
  30. void CTSetIRQ(int irq);
  31. int CTInitialize(void);
  32. void CTUninstall(void);
  33. void CTSpeakerOn(void);
  34. void CTSpeakerOff(void);
  35. void CTSetStatusWord(word * address);
  36. void CTOutputVoice(char * buffer);
  37. void CTInputVoice(int sampleRate, char* buffer, long length);
  38. void CTStopVoiceProcess(void);
  39. int CTPauseOutputVoice(void);
  40. int CTContinueOutputVoice(void);
  41.  
  42.  
  43. #endif
  44.